package org.jeecg.jxc.homepage.controller;

import org.jeecg.jxc.homepage.api.vo.Result;
import org.jeecg.jxc.homepage.entity.Goods;
import org.jeecg.jxc.homepage.service.GoodsService;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description:
 * @Company: apple
 * @Author: waiwaiwai
 * @Date: 2022/06/21  23:52
 * @Version: 1.0
 */
@RestController
@RequestMapping("/goods")
public class GoodsController {
    @Resource
    private GoodsService goodsService;
    @GetMapping("/queryGoodsList")
    public List<Goods> selectGoods(){

        return goodsService.queryAll();
    }
}
